// @ts-nocheck
/**
 @文件名： fullScreenUnit
 @来源：YongPing.Wang|2023/09/21 10:22
 @描述：全屏
 **/

// 全屏
export const fullScreen = () => {
  // @ts-ignore
  document.documentElement.RequestFullScreen && document.documentElement.RequestFullScreen()
  document.documentElement.mozRequestFullScreen && document.documentElement.mozRequestFullScreen()
  document.documentElement.webkitRequestFullScreen && document.documentElement.webkitRequestFullScreen()
  document.documentElement.msRequestFullscreen && document.documentElement.msRequestFullscreen()
}

// 移除全屏
export const removeFullScreen = () => {
  document.mozExitFullScreen && document.mozExitFullScreen()
  document.exitFullscreen && document.exitFullscreen()
  document.webkitExitFullscreen && document.webkitExitFullscreen()
  document.msExitFullscreen && document.msExitFullscreen()
}
